<?php
include "base.php";





function strTest(){
    $str = "hello world everyone";
    // 将每个单词的首字母转大写
    //e(ucwords($str));

    // 将第一个字母转大写
    //e(ucfirst($str));

    //$new_str = str_replace(" ","_",$str);
    //p($new_str);

//    $s = explode(' ',$str);
//    $string = implode(',',$s);
//    p($string);


    $strp = strpos($str,'end');
    if (empty($strp)){
        $a = $str.' end';
        p($a);
    }else{
        p($str);
    }
}


$GLOBALS["ar"]();